package com.santu.edu.supporter.biz.school.pojo.po;

import java.io.Serializable;
import java.util.Date;

import com.santu.edu.supporter.biz.school.pojo.dto.SchoolDTO;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 
 * @TableName edu_supporter_school
 */
@Data
@Accessors(chain = true)
public class SchoolPO implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 学校id
     */
    private String schoolId;

    /**
     * 学校名称
     */
    private String schoolName;

    /**
     * 
     */
    private String gmtCreate;

    /**
     * 
     */
    private String gmtModified;

    private static final long serialVersionUID = 1L;


    public static SchoolPO createItem(SchoolDTO dto) {
        return new SchoolPO()
                .setSchoolId(dto.getSchoolId())
                .setSchoolName(dto.getSchoolName());
    }
}